body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.trayectoria {
    margin: auto;
    /*max-width: 750px;*/
    max-width: 1024px;
    padding: 30px;
}

.intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.intro .text {
    flex: 1;
    padding-left: 40px;
}

.intro .text h1 {
    font-size: 50px;
    /* Make the title larger */
    color: #0785cc;
    /* Azul */
    text-align: left;
    line-height: 1.2;
    /* Adjust line spacing */
    word-break: break-word;
    /* Ensure line breaks occur naturally */
}
.background-img{
    background: linear-gradient(to right, #ffffff, #ffffffad), linear-gradient(to top, #ffffff, 82%, #ffffff91), url(https://lalonjapropiedadraiz.com/secciontrayectoria/img/background-family.jpg);
    position: relative;
    background-repeat: no-repeat;
    background-position-x: right;
    background-position-y: -170px;
    background-size: contain;
}


.subtitle {
    padding: 0 115px 0 0px;
    line-height: 20px;
    font-size: 17px;
}


.intro .image {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.intro .image img {
    max-width: 100%;
    height: auto;
}

.intro .image .caption {
    margin-top: -15px;
    line-height: 1.5;
    /* Adjust line spacing */
    color: #fff;
    /* White text */
    background-color: #0785cc;
    /* Azul */
    padding: 5px 10px;
    border-radius: 50px;
    /* Fully rounded borders */
    text-align: center;
    /* Center text */
    position: relative;
    font-weight: bold;
    width: 95%;
    margin-left: 2.5%;
}

.benefits {
    margin-top: 40px;
}

.benefits h2 {
    text-align: center;
    color: #0785cc;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.item-check {
    color: #29ABE2;
    font-size: 20px;
    margin-right: 8px;
}

.benefit-card {
    width: 33.3%;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}
.polity-card {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: center;
    justify-content: space-around;
    padding: 20px 0px;
}
.benefit-list-columns {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 20px 0px;
    width: 50%;
    align-items: flex-start;
}

.benefit-item {
    flex: 1 1 calc(33.333% - 20px);
    text-align: center;
    font-size: 16px;
    color: #222323;
}

.benefit-list.azul {
    background-color: #f5fafd;
    /* Azul pastel */
}

.text-benefit-list {
    color: #000000;
    font-size: 14px;
    line-height: 1.4;
    padding: 0 38px 0 0;
}

.check {
    margin: 4px;
}

.title-benefit-list {
    color: #0079BF;
    margin-top: 6px;
    margin-bottom: 0px;
    font-size: 18px;
}
h2.border-azul {
    text-align: center;
    color: #0785cc;
    border: 1px solid #0785cc;
    border-radius: 50px;
    margin: 25px 24%;
    padding: 10px 20px;
}
.title-polity-list {
    color: #0079BF;
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 24px;
}

.cta {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cta-item {
    flex: 1 1 calc(50% - 20px);
    text-align: center;
}

.cta-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.cta-item button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0785cc;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.cta-item button:hover {
    background-color: #0785cc;
}

.main-container {

    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    background-color: #fff;

}

.card {
    width: auto;
    max-width: 48%;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 5px 20px;
    width: 90%;
}

.card-content p {
    font-family: 'Georgia', serif;
    font-size: 13px;
    line-height: 1;
}

.card-button {
    display: inline-block;
    background-color: #0785cc;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s;
}

.card-button:hover {
    background-color: #1a719d;
}

h1.title-proposito {
    text-align: center;
    color: #0785cc;
    font-size: 50px;
    margin-bottom: 5px;
}
p.subtitle-proposito {
    text-align: center;
    padding: 0px 40px;
    font-size: 19px;
}
iframe{
    height: 68% !important;
}

/* Responsive Design */

@media (max-width: 991px) {
    .intro .text h1 {
        font-size: 30px;
    }

    .subtitle {
        padding: 0;
    }
    h2.border-azul {
    margin: 25px 20%;
    }   
    .text-proposito {
    width: 95% !important;
    }
    iframe{
    height: 62% !important;
}

}

@media (max-width: 768px) {
    .intro {
        flex-direction: column;
    }

    .benefit-card {
        flex: 1 1 50%;
    }

    .cta-item {
        flex: 1 1 100%;
    }
    h2.border-azul {
    margin: 25px 10%;
    }   
    .benefit-list-columns {
    width: 100%;
    align-items: center;
    }
    .text-proposito {
    width: 95% !important;
    }
    iframe{
    height: 46% !important;
    }
    .background-img{
    background-position-y: -90px;
    }
}

@media (max-width: 500px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card {
        width: 100%;
        max-width: 100% !important;
    }

    .benefit-card {
        flex: 1 1 100%;
    }
    .polity-card {
        flex: 1 1 100%;
    }

    .intro .image .caption {
        font-size: 12px;
    }
    h2.border-azul {
    margin: 10px 0%;
    font-size: 20px;
    }
    .benefit-list-columns {
    width: 100%;
    align-items: center;
    }   
    .text-proposito {
    width: 90% !important;
    }
    iframe{
    height: 68% !important;
    }
    .background-img{
    background-position-y: 0px;
    }
    .post-content h3 {
    font-size: 20px;
    }
    p.subtitle-proposito {
    padding: 0px 5px;
    font-size: 19px;
    }
}